package com.ttmall.product.vo;

import com.ttmall.product.entity.SkuImagesEntity;
import com.ttmall.product.entity.SkuInfoEntity;
import com.ttmall.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

@Data
public class SkuItemVo {

    SkuInfoEntity info;

    boolean hasStock = true;

    List<SkuItemSaleAttrVo> saleAttr;

    List<SkuImagesEntity> images;

    SpuInfoDescEntity desp;

    List<SpuItemAttrGroupVo> groupAttrs;

    @Data
    public  static class SkuItemSaleAttrVo{
        private  Long attrId;

        private  String attrName;

        private  List<AttrValueWithSkuId> attrValues;
    }

    @Data
    public  static  class AttrValueWithSkuId{
        private  String attrValue;
        private  String skuIds;

    }

    @Data
    public  static  class  SpuItemAttrGroupVo{

        private  String groupName;

        private  List<SpuBaseAttrVo> attrs;

    }
    @Data
    public  static  class  SpuBaseAttrVo{
        private  String attrName;

        private  String attrValue;
    }
}
